// 医技预约数据存储
export default {
	namespaced: true,
	state: {
		beginDate:'',//医技预约首页开始日期
		endDate:'', //医技预约首页结束日期
		toBeReservedItem:'', //点击待预约项目数据
		appointmentDate:'' ,//点击科室预约日期
		printData:'' //打印存储数据
	},
	getters: {

	},
	mutations: {
		updateBeginDate(state, beginDate) {
			state.beginDate = beginDate;
		},
		updateEndDate(state, endDate) {
			state.endDate = endDate;
		},
		updateToBeReservedItem(state, toBeReservedItem) {
			state.toBeReservedItem = toBeReservedItem;
		},
		updateAppointmentDate(state, appointmentDate) {
			state.appointmentDate = appointmentDate;
		},
		updatePrintData(state, printData) {
			state.printData = printData;
		}
	},
	actions: {
		updateBeginDate({commit}, beginDate) {
			commit('updateBeginDate', beginDate)
		},
		updateEndDate({commit}, endDate) {
			commit('updateEndDate', endDate)
		},
		updateToBeReservedItem({commit}, toBeReservedItem) {
			commit('updateToBeReservedItem', toBeReservedItem)
		},
		updateAppointmentDate({commit}, appointmentDate) {
			commit('updateAppointmentDate', appointmentDate)
		},
		updatePrintData({commit}, printData) {
			commit('updatePrintData', printData)
		}
	}
}
